.math-plotter-container {
  height: calc(100vh - 200px);
  min-height: 700px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: auto;
  box-sizing: border-box;
}

/* 页面标题样式 */
.math-plotter-container .ant-typography-h2 {
  color: #1a1a1a !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
  font-weight: 700 !important;
  margin-bottom: 24px !important;
}

.canvas-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  height: fit-content;
}

.plot-canvas {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.plot-canvas:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* 标签页样式 */
.ant-tabs {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

.math-plotter-container .ant-tabs .ant-tabs-tab {
  color: #1a1a1a !important;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.math-plotter-container .ant-tabs .ant-tabs-tab.ant-tabs-tab-active {
  color: #1a1a1a !important;
  font-weight: 600;
}

.math-plotter-container .ant-tabs .ant-tabs-tab:hover {
  color: #1a1a1a !important;
  font-weight: 600;
}

.ant-tabs .ant-tabs-ink-bar {
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.ant-tabs .ant-tabs-content-holder {
  background: transparent;
}

/* 卡片样式 */
.function-card,
.function-list-card,
.settings-card,
.display-card,
.animation-card,
.actions-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.function-card .ant-card-head,
.function-list-card .ant-card-head,
.settings-card .ant-card-head,
.display-card .ant-card-head,
.animation-card .ant-card-head,
.actions-card .ant-card-head {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
}

.function-card .ant-card-head-title,
.function-list-card .ant-card-head-title,
.settings-card .ant-card-head-title,
.display-card .ant-card-head-title,
.animation-card .ant-card-head-title,
.actions-card .ant-card-head-title {
  color: #1a1a1a !important;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.function-card .ant-card-body,
.function-list-card .ant-card-body,
.settings-card .ant-card-body,
.display-card .ant-card-body,
.animation-card .ant-card-body,
.actions-card .ant-card-body {
  background: transparent;
  padding: 16px;
}

/* 文本样式 */
.function-card .ant-typography,
.function-list-card .ant-typography,
.settings-card .ant-typography,
.display-card .ant-typography,
.animation-card .ant-typography,
.actions-card .ant-typography {
  color: #1a1a1a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 函数项样式 */
.function-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
}

.function-item .ant-card-body {
  padding: 12px;
}

.function-item .ant-typography {
  font-size: 13px !important;
  margin: 0;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 按钮样式 */
.math-plotter-container .ant-btn {
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px !important;
  height: 36px;
  transition: all 0.3s ease;
  color: #1a1a1a !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  text-shadow: none;
}

.math-plotter-container .ant-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 1) !important;
}

.math-plotter-container .ant-btn .anticon {
  color: #1a1a1a !important;
  font-size: 14px;
  text-shadow: none;
}

/* 删除按钮特殊样式 */
.math-plotter-container .ant-btn-dangerous .anticon {
  color: white !important;
  font-size: 16px !important;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* 函数表达式代码样式增强 */
.function-item .ant-typography-caption {
  background: rgba(255, 255, 255, 0.9) !important;
  padding: 4px 8px !important;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-family: 'Courier New', monospace;
  font-size: 12px !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
}

.math-plotter-container .ant-btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
}

.math-plotter-container .ant-btn-primary:hover {
  background: linear-gradient(135deg, #764ba2, #667eea) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.math-plotter-container .ant-btn-dangerous {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
}

.math-plotter-container .ant-btn-dangerous:hover {
  background: linear-gradient(135deg, #ee5a52, #ff6b6b) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* 输入框样式 */
.math-plotter-container .ant-input,
.math-plotter-container .ant-input-number {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 6px;
  color: #1a1a1a !important;
  font-size: 13px !important;
  height: 36px;
  font-weight: 500;
}

.math-plotter-container .ant-input:hover,
.math-plotter-container .ant-input:focus,
.math-plotter-container .ant-input-number:hover,
.math-plotter-container .ant-input-number:focus {
  border-color: rgba(102, 126, 234, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
  background: rgba(255, 255, 255, 1) !important;
}

.math-plotter-container .ant-input::placeholder {
  color: rgba(26, 26, 26, 0.5) !important;
  font-weight: 400;
}

/* 选择器样式 */
.math-plotter-container .ant-select .ant-select-selector {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 6px;
  color: #1a1a1a !important;
  height: 36px !important;
  font-weight: 500;
}

.math-plotter-container .ant-select {
  font-size: 13px !important;
}

.math-plotter-container .ant-select .ant-select-selector:hover {
  border-color: rgba(102, 126, 234, 0.6) !important;
  background: rgba(255, 255, 255, 1) !important;
}

.math-plotter-container .ant-select .ant-select-selection-placeholder {
  color: rgba(26, 26, 26, 0.5) !important;
}

.math-plotter-container .ant-select .ant-select-selection-item {
  color: #1a1a1a !important;
  font-weight: 500;
}

/* 开关样式 */
.math-plotter-container .ant-switch {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.math-plotter-container .ant-switch-checked {
  background: linear-gradient(90deg, #667eea, #764ba2) !important;
  border-color: #667eea;
}

.math-plotter-container .ant-switch:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* 滑块样式 */
.math-plotter-container .ant-slider {
  margin: 12px 0 8px 0 !important;
  padding: 4px 0 !important;
}

.math-plotter-container .ant-slider-rail {
  background: rgba(255, 255, 255, 0.4) !important;
  height: 8px !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.math-plotter-container .ant-slider-track {
  background: linear-gradient(90deg, #667eea, #764ba2) !important;
  height: 8px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.math-plotter-container .ant-slider-handle {
  border: 3px solid #667eea !important;
  background: white !important;
  width: 24px !important;
  height: 24px !important;
  margin-top: -8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(102, 126, 234, 0.3) !important;
  border-radius: 50% !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.math-plotter-container .ant-slider-handle:hover {
  border-color: #764ba2 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(118, 75, 162, 0.4) !important;
}

.math-plotter-container .ant-slider-handle:focus {
  border-color: #764ba2 !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.math-plotter-container .ant-slider-handle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .math-plotter-container {
    padding: 15px;
  }
  
  .plot-canvas {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .math-plotter-container {
    padding: 10px;
    height: calc(100vh - 150px);
  }
  
  .math-plotter-container .ant-row {
    flex-direction: column;
  }
  
  .math-plotter-container .ant-col {
    width: 100% !important;
    margin-bottom: 16px;
  }
  
  .plot-canvas {
    width: 100%;
    height: 300px;
  }
}

/* 动画效果 */
@keyframes mathPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.canvas-card:hover {
  animation: mathPulse 2s ease-in-out infinite;
}

/* 函数表达式代码样式 */
.ant-typography-caption {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 颜色选择器样式 */
input[type="color"] {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: transparent;
}

input[type="color"]:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

/* 滚动条样式 */
.ant-tabs-content {
  max-height: 500px;
  overflow-y: auto;
}

.ant-tabs-content::-webkit-scrollbar {
  width: 6px;
}

.ant-tabs-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.ant-tabs-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.ant-tabs-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
